<template>
  <AMISRenderer :schema="schema" />
</template>

<script setup>
import AMISRenderer from '@/components/AMISRenderer.vue'

const schema = {
  type: 'page',
  body: {
    type: 'crud',
    api: '/base/log/list/operation',
    syncLocation: false,
    autoFillHeight: true,
    columnsTogglable: false,
    footerToolbar: [
      'statistics',
      'switch-per-page',
      'pagination'
    ],
    autoGenerateFilter: {
      showBtnToolbar: false,
      columnsNum: 4
    },
    columns: [
      {
        name: 'module',
        label: '模块',
        searchable: {
          type: 'input-text',
          name: 'module',
          label: '模块'
        }
      },
      {
          name: 'title',
          label: '标题',
          searchable: {
            type: 'input-text',
            name: 'title',
            label: '标题'
          }
      },
      {
          name: 'content',
          label: '内容'
      },
      {
        name: 'operatorName',
        label: '操作人',
        searchable: {
          type: 'input-text',
          name: 'operatorName',
          label: '操作人'
        }
      },
      {
        name: 'operatorId',
        label: '操作人Id',
        searchable: {
          type: 'input-text',
          name: 'operatorId',
          label: '操作人Id'
        }
      },
      {
        name: 'gmtCreated',
        label: '操作时间'
      },
      {
        name: 'serviceName',
        label: '服务名称'
      },
      {
          name: 'url',
          label: 'url'
      },
      {
          name: 'ipRegion',
          label: 'ip地区'
      }
    ]
  }
}

</script>
